package com.parfinex.java.phase1.module2.task08;

public class SingletonTest {
    public static void main(String[] args){
//        Singleton s1 =new Singleton();
//        Singleton s2 =new Singleton();
//        System.out.println(s1 == s2);
//        System.out.println(Singleton.sin);
//        Singleton.sin = null;//可以使得引用变量无效
        Singleton s1=Singleton.getInstance();
        Singleton s2=Singleton.getInstance();
        System.out.println(s1==s2);

    }
}
